package com.tangweiliang.springboot;

import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author :tangweiliang
 * @date : 2022/12/30 22:53
 * 未来的你会感谢现在努力的自己
 */
@Configuration
public class AopAutoConfiguration implements AutoConfiguration {

    @EnableAspectJAutoProxy
    @ConditionalOnClass("org.aspectj.weaver.Advice")
    @Configuration
    class AspectjConfiguration{

    }
}
